<?php foreach($this->list AS $key => $val) { ?>
	<li id="notification_<?php echo $val['notification_id']; ?>">
	<?php if($this->flag == '-1'){ ?><span title="删除" class="del_Msg" onclick="mark_notifications(<?php echo $val['notification_id']; ?>, false)">x</span><?php } ?>
<?php if($val['extend_count'] > 1){ ?>
	<?php if($val['model_type'] == notify_class::CATEGORY_QUESTION){?>
		<?php echo $val['extend_count']; ?> 项关于问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php } ?>
<?php }else{ ?>
	<?php if($val['action_type'] == notify_class::TYPE_PEOPLE_FOCUS){ ?>
		<a href="<?php echo $val['key_url']; ?>" title="<?php echo $val['p_username']; ?>"><?php echo $val['p_username']; ?></a> 关注了你
	<?php }else if($val['action_type'] == notify_class::TYPE_NEW_ANSWER){ ?>
			<a href="<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> 回复了问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if($val['action_type'] == notify_class::TYPE_COMMENT_AT_ME){ ?>
			<a href="<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> 在问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> 中的评论提到了你
	<?php }else if($val['action_type'] == notify_class::TYPE_INVITE_QUESTION){ ?>
		<a href="<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> 邀请您参与问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if($val['action_type'] == notify_class::TYPE_ANSWER_COMMENT){ ?>
		<a href="<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> 评论了您在问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> 中的回复
	<?php }else if($val['action_type'] == notify_class::TYPE_QUESTION_COMMENT){ ?>
		<a href="<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> 评论了您发起的问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a>
	<?php }else if($val['action_type'] == notify_class::TYPE_ANSWER_AGREE){ ?>
		<a href="<?php echo $val['p_url']; ?>"><?php echo $val['p_username']; ?></a> 赞同了您在问题 <a href="<?php echo $val['key_url']; ?>"><?php echo $val['title']; ?></a> 中的回复
	<?php }else if($val['action_type'] == notify_class::TYPE_CONTEXT){ ?>
		<?php echo $val['content']; ?>
	<?php } ?>
<?php } ?>
	<span>（<?php echo date('Y-m-d H:i:s', $val['add_time']); ?>）</span>
	</li>
<?php } ?>